package java0108;

import java.io.FileNotFoundException;

public class Java02 {
    public static void main(String[] args) throws FileNotFoundException {

        // (2)运行时异常、非检查型异常

        // ArrayIndexOutOfBoundsException数组下标越界异常
//        int[] arr = {1,2};
//        System.out.println(arr[2]);

        // NullPointerException空指针异常
//        String str = null;
//        System.out.println(str.equals("abc"));

        // FileNotFoundException文件找不到异常
        // FileReader reader = new FileReader("d:/abc.txt");

    }
}
